package com.yanqu.road.logic.bussiness.activity;

import com.yanqu.road.entity.activity.xiayue.XiaYueUserData;
import com.yanqu.road.entity.activity.xiayue.config.XiaYueAnimalConfig;
import com.yanqu.road.entity.activity.xiayue.config.XiaYueCombConfig;
import com.yanqu.road.entity.activity.xiayue.config.XiaYueNpcConfig;
import com.yanqu.road.entity.activity.xiayue.config.XiaYuePlaceConfig;
import com.yanqu.road.logic.bussiness.DaoHelper;

import java.util.List;
import java.util.Map;

public class XiaYueBusiness {

    public static Map<Integer, XiaYuePlaceConfig> getXiaYuePlaceConfigMap(int activityId) {
        return DaoHelper.getXiaYuePlaceConfigDaoImpl().getXiaYuePlaceConfigMap(activityId);
    }

    public static Map<Integer, XiaYueAnimalConfig> getXiaYueAnimalConfigMap(int activityId) {
        return DaoHelper.getXiaYueAnimalConfigDaoImpl().getXiaYueAnimalConfigMap(activityId);
    }

    public static Map<Integer, XiaYueCombConfig> getXiaYueCombConfigMap(int activityId) {
        return DaoHelper.getXiaYueCombConfigDaoImpl().getXiaYueCombConfigMap(activityId);
    }

    public static List<XiaYueNpcConfig> getXiaYueNpcConfigList(int activityId) {
        return DaoHelper.getXiaYueNpcConfigDaoImpl().getXiaYueNpcConfigList(activityId);
    }

    public static XiaYueUserData getXiaYueUserData(int activityId, long userId) {
        return DaoHelper.getXiaYueUserDataDaoImpl().getXiaYueUserData(activityId, userId);
    }

    public static boolean addXiaYueUserData(XiaYueUserData data) {
        return DaoHelper.getXiaYueUserDataDaoImpl().add(data);
    }

    public static boolean updateXiaYueUserData(XiaYueUserData data) {
        return DaoHelper.getXiaYueUserDataDaoImpl().update(data);
    }
}
